#ifndef DLL_EVENT_H
#define DLL_EVENT_H

#include "bbAddon.h"


		/* Events */
		struct TEvent{
			int _id;
			int _x;
			int _y;
			int _src;
			char* _data;
			TEvent *_next;
			TEvent *_prev;
		};
		
		TEvent* FirstEvent();
		TEvent* LastEvent();
		BBAEXP void BBACALL EmitEvent(int Event_Id,int Event_X,int Event_Y,char* Event_Data,int Event_Source);
		BBAEXP int BBACALL PollEvent();
		BBAEXP int BBACALL EventID();
		BBAEXP int BBACALL EventX();
		BBAEXP int BBACALL EventY();
		BBAEXP int BBACALL EventSource();
		BBAEXP char* BBACALL EventData();
		BBAEXP void BBACALL EventEnableStack(int enable);
		BBAEXP int BBACALL EventStackEnabled();
		BBAEXP void BBACALL SetEventStackSize(int Size);
		BBAEXP int BBACALL EventStackSize();
		BBAEXP int BBACALL CountEvents();
		

#endif //DLL_EVENT_H